package com.yohann.designPattern.composite;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 专业
 * </p>
 *
 * @author Yohann
 * @since 2021/2/7 16:42
 */
public class Department extends OrganizationComponent {
    public Department(String name, String description) {
        super(name, description);
    }

    @Override
    protected void print() {
        System.out.println("<====== " + getName() + " ======>");
    }
}